<template>
    <view class="live-now-page">
        <!-- 视频 -->
        <view class="live-video-box">
            <live-player src="https://domain/pull_stream" autoplay @statechange="statechange" @error="error" style="width: 300px; height: 225px;" />
        </view>
    </view>
</template>

<script>
export default {
    methods: {
        statechange(e) {
            console.log('live-player code:', e.detail.code)
        },
        error(e) {
            console.error('live-player error:', e.detail.errMsg)
        }
    }
}
</script>